package oop10;

/**
 * @author oldliu
 * @since 1.0
 */
public class Bus extends Vechile {
    @Override
    public double calcMoney(int days) {
        if(days<3){
            return days*super.getPrice();
        }else if(days<15){
            return days*super.getPrice()*0.9;
        }
        return  days*super.getPrice()*0.8;
    }
}
